package net.sunofbeach.blog.controller.portal;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 应用下载
 * 应用检查更新
 */
@RestController
@RequestMapping("/portal/app")
public class APPApi {

    //http://localhost:2020/portal/app/===729732161392869376
    @GetMapping("/{code}")
    public void downloadAppForThirdPartScan(@PathVariable("code") String code,
                                            HttpServletRequest request,
                                            HttpServletResponse response){

        //TODO:定向到最新版App下载
    }


}
